package com.baby.wheelview;

import android.os.Parcel;
import android.os.Parcelable;

/***
 * 滚轮选中对象
 *
 * @author zahngxiaobin
 */
public class WheelSelectTime implements Parcelable {
    private String selectTime;// 选中的时间
    private String selectTimeString;// 选中的时间
    private int selectDateIndex;// 选中的日期下标
    private int selectHourIndex;// 选中的小时小标
    private int selectMinuteIndex;// 选中的分钟下标

    /* 2015.12.01日新增 */
    private int selectYearsIndex;// 选中的年份的下标
    private int selectMonthIndex;// 选中的月份的下标
    private int selectDayIndex;// 选中日期的下标

    public String getSelectTime() {
        return selectTime;
    }

    public void setSelectTime(String selectTime) {
        this.selectTime = selectTime;
    }

    public String getSelectTimeString() {
        return selectTimeString;
    }

    public void setSelectTimeString(String selectTimeString) {
        this.selectTimeString = selectTimeString;
    }

    public int getSelectDateIndex() {
        return selectDateIndex;
    }

    public void setSelectDateIndex(int selectDateIndex) {
        this.selectDateIndex = selectDateIndex;
    }

    public int getSelectHourIndex() {
        return selectHourIndex;
    }

    public void setSelectHourIndex(int selectHourIndex) {
        this.selectHourIndex = selectHourIndex;
    }

    public int getSelectMinuteIndex() {
        return selectMinuteIndex;
    }

    public void setSelectMinuteIndex(int selectMinuteIndex) {
        this.selectMinuteIndex = selectMinuteIndex;
    }

    public int getSelectYearsIndex() {
        return selectYearsIndex;
    }

    public void setSelectYearsIndex(int selectYearsIndex) {
        this.selectYearsIndex = selectYearsIndex;
    }

    public int getSelectMonthIndex() {
        return selectMonthIndex;
    }

    public void setSelectMonthIndex(int selectMonthIndex) {
        this.selectMonthIndex = selectMonthIndex;
    }

    public int getSelectDayIndex() {
        return selectDayIndex;
    }

    public void setSelectDayIndex(int selectDayIndex) {
        this.selectDayIndex = selectDayIndex;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.selectTime);
        dest.writeString(this.selectTimeString);
        dest.writeInt(this.selectDateIndex);
        dest.writeInt(this.selectHourIndex);
        dest.writeInt(this.selectMinuteIndex);
        dest.writeInt(this.selectYearsIndex);
        dest.writeInt(this.selectMonthIndex);
        dest.writeInt(this.selectDayIndex);
    }

    public WheelSelectTime() {
    }

    protected WheelSelectTime(Parcel in) {
        this.selectTime = in.readString();
        this.selectTimeString = in.readString();
        this.selectDateIndex = in.readInt();
        this.selectHourIndex = in.readInt();
        this.selectMinuteIndex = in.readInt();
        this.selectYearsIndex = in.readInt();
        this.selectMonthIndex = in.readInt();
        this.selectDayIndex = in.readInt();
    }

    public static final Creator<WheelSelectTime> CREATOR = new Creator<WheelSelectTime>() {
        @Override
        public WheelSelectTime createFromParcel(Parcel source) {
            return new WheelSelectTime(source);
        }

        @Override
        public WheelSelectTime[] newArray(int size) {
            return new WheelSelectTime[size];
        }
    };
}
